/*
 * package com.myrpc.test.loadbean;
 * 
 * import org.junit.Test; import org.junit.runner.RunWith; import
 * org.springframework.beans.factory.annotation.Autowired; import
 * org.springframework.boot.test.context.SpringBootTest; import
 * org.springframework.test.context.junit4.SpringRunner;
 * 
 * import com.alibaba.fastjson.JSON; import
 * com.fasterxml.jackson.annotation.JsonAlias; import
 * com.myrpc.provider.ProviderApplication; import
 * com.myrpc.provider.user.service.InfoUserService; import
 * com.myrpc.provider.utils.SpringContextHolder; import
 * com.myrpc.user.entity.InfoUser;
 * 
 * @RunWith(SpringRunner.class)
 * 
 * @SpringBootTest(classes=ProviderApplication.class) public class LoadBeanTs {
 * 
 * @Autowired SpringContextHolder springContextHolder;
 * 
 * @Test public void contextLoads() {
 * 
 * //springContextHolder.printAllBeans();
 * 
 * InfoUserService infoUserService = (InfoUserService)
 * springContextHolder.getBeanById("infoUserService"); InfoUser infoUserById =
 * infoUserService.getInfoUserById("1");
 * System.out.println(JSON.toJSONString(infoUserById)); }
 * 
 * }
 */